projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed6e4e
)
Doh! Typo fix for description being clobbered.
author
robertl
<robertl>
Wed, 9 Jul 2003 16:04:55 +0000
(16:04 +0000)
committer
robertl
<robertl>
Wed, 9 Jul 2003 16:04:55 +0000
(16:04 +0000)
waypt.c
patch
|
blob
|
history
diff --git
a/waypt.c
b/waypt.c
index 2aed2bbf656eba862f9a783e713afcca55f0cf9d..cb6e26dd59ce24eab2ec2f5f1efb13cc6e376575 100644
(file)
--- a/
waypt.c
+++ b/
waypt.c
@@
-77,9
+77,10
@@
waypt_add(waypoint *wpt)
xfree(wpt->description);
if (wpt->notes != NULL) {
wpt->description = xstrdup(wpt->notes);
- }
- if (wpt->shortname != NULL) {
- wpt->description = xstrdup(wpt->shortname);
+ } else {
+ if (wpt->shortname != NULL) {
+ wpt->description = xstrdup(wpt->shortname);
+ }
}
}
waypt_ct++;